﻿@model DataModel.Models.LessonModel


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>LessonModel</legend>


        <div class="editor-field">
            @Html.HiddenFor(model => model.LessonID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BeginTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BeginTime)
            @Html.ValidationMessageFor(model => model.BeginTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EndTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndTime)
            @Html.ValidationMessageFor(model => model.EndTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WeekDay)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WeekDay)
            @Html.ValidationMessageFor(model => model.WeekDay)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Periodicity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Periodicity)
            @Html.ValidationMessageFor(model => model.Periodicity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PeriodicityMask)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PeriodicityMask)
            @Html.ValidationMessageFor(model => model.PeriodicityMask)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BeginDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BeginDate)
            @Html.ValidationMessageFor(model => model.BeginDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EndDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndDate)
            @Html.ValidationMessageFor(model => model.EndDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Semester)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Semester)
            @Html.ValidationMessageFor(model => model.Semester)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
